import {NgModule} from '@angular/core';
import {RouterModule, Routes} from "@angular/router";

import {VideoDetailComponent} from "./video-detail/video-detail.component";
import {VideoMoreComponent} from "./video-more/video-more.component";
import {VideoComponent} from "./video.component";



const routes: Routes = [
  {
    path: '',
    component: VideoComponent,
    data: {
      reusable: true,
      meta: {
        title: '体育视频_赛事视频_求苗体育手机网',
        keywords: '视频,运动视频,体育视频,比赛视频',
        description: `求苗体育视频频道全面展示了NBA视频，CBA视频，国际足球视频，英超视频，
        意甲视频，德甲视频，综合体育视频等体育比赛视频，并提供了体育花边和赛后赛事等。 `,
      }
    }
  },
  {
    path: 'category/:categoryId/:videoId',
    component: VideoDetailComponent
  },
  {
    path: 'category/:categoryId',
    component: VideoMoreComponent
  },
  {
    path: 'detail/:videoId',
    component: VideoDetailComponent
  },
];

@NgModule({
  imports: [
    RouterModule.forChild(routes)
  ],
  exports: [RouterModule]
})
export class VideoRoutingModule {
}
